package com.day17.ex01;

import java.io.File;
import java.io.IOException;

public class FileDemo02 {
    public static void main(String[] args)throws IOException {
        File f1=new File("d:\\a.txt");
        System.out.println(f1.createNewFile());
        System.out.println("--------");
        File f2=new File("d:\\b.txt");
        System.out.println(f2.mkdir());
        System.out.println("--------");
        File f3=new File("d:\\c.txt");
        System.out.println(f3.mkdirs());
        System.out.println("--------");
        File f4=new File("d:\\d.txt");
        System.out.println(f4.createNewFile());
    }
}
